﻿@model DataEntity.OffPurchaseBill
<div class="div_center">

    @using (Html.BeginForm("", "", FormMethod.Post, new { id = "purchaseBillfm", name = "purchaseBillfm" }))
    { 
        <fieldset class="datebox-button" style="height: auto; text-align: left; padding-top: 8px; padding-right: 8px; padding-bottom: 8px; padding-left: 8px;">
            <legend class="panel-title">入库单信息</legend>


           <table class="TableBlock">
           
            <tr>
             
                <td  class="TableLabel" >
                    @Html.HiddenFor(model=>model.ID)
                   入库单名称:
                </td>
                <td class="TableData" >
                    
                        @Html.TextBoxFor(model => model.Name)
                       
                </td>
                  <td class="TableLabel" >
                   入库时间:
                </td>
                <td class="TableData" >
                         @Html.TextBoxFor(model => model.StorageTime, Model.StorageTime== null ? "" : DateTime.Parse(Model.StorageTime.ToString()).ToString("yyyy-MM-dd"), new { style = "width:150px;" })
                    <img onclick="WdatePicker({el:'StorageTime'})" src="/Scripts/jquery-plugin/My97DatePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle">

                </td>
              
            </tr>
           
            <tr>
                <td class="TableLabel" >
                   订单号:
                </td>
                <td class="TableData" >
                         @Html.TextBoxFor(model => model.OrderNumber)
                </td>
                 <td  class="TableLabel">
                   编号:
                </td>
                <td class="TableData" >
                   
                         @Html.TextBoxFor(model => model.Code,new { style="width:80px"})
                       
                </td>
                
            </tr>
                <tr>
                <td class="TableLabel" >
                   货源性质:
                </td>
                <td class="TableData" >
                         @Html.TextBoxFor(model => model.SourceProperties)
                </td>
                <td  class="TableLabel">
                  排序号:
                </td>
                <td class="TableData">
                      @Html.TextBoxFor(model => model.SortNumber,new { style="width:100px"})
                     
                </td>
            </tr>
                <tr>
                <td class="TableLabel" >
                   记账人:
                </td>
                <td class="TableData" >
                         @Html.TextBoxFor(model => model.Bookkeeper)
                </td>
                <td  class="TableLabel">
                  收货人:
                </td>
                <td class="TableData">
                      @Html.TextBoxFor(model => model.Consignee)
                     
                </td>
            </tr>
                   <tr>
              
                <td  class="TableLabel">
                  送货单位:
                </td>
                <td class="TableData" >
                      @Html.TextBoxFor(model => model.DeliveryCompany)
                     
                </td>
                        <td  class="TableLabel">
                  发票入库:
                </td>
                <td class="TableData">
                      @Html.CheckBoxFor(model=>model.IsBillStorage) 发票入库
                     
                </td>
            </tr>
            <tr>
                <td  class="TableLabel">
                    备注:
                </td>
                <td class="TableData" colspan="3">
                    
                        @Html.TextAreaFor(model => model.Remark, new { cols = "3", rows = "4", style = "height:70px;width: 93%; text-align: left;" })
                       
                </td>
            </tr>
        </table>

        </fieldset>
    }

</div>


<script>
    $(function () {
        var _form = $("#purchaseBillfm");
        var _key = $("#ID", $("#purchaseBillfm")).val();
        $("#SortNumber", _form).validatebox({ required: true, validType: ['integer'] });
        $("#Name", _form).validatebox({ required: true });
        $("#Code", _form).attr("readonly", "readonly");
        $("#Code", _form).addClass("BigStatic");
    });
  

</script>
